<template>
  <div class="main">
    <div class="beian">
      <div class="bluebg"></div>
      <div class="beianbody">
        <div class="headpic">
          <img src="../assets/images/tx.jpg" alt>
        </div>
        <h1>备案名称</h1>
        <ul>
          <li>
            <p>统一信用代码</p>
            <h2>{{data.creditCode}}</h2>
          </li>
          <li>
            <p>海关编号</p>
            <h2>{{data.cusCode}}</h2>
          </li>
          <li>
            <p>法人</p>
            <h2>{{data.legalPerson}}</h2>
          </li>
          <li>
            <p>地址</p>
            <h2>{{data.addr}}</h2>
          </li>
          <li>
            <p>联系人</p>
            <h2>{{data.contactPerson}}</h2>
          </li>
          <li>
            <p>电话</p>
            <h2>{{data.contactTel}}</h2>
          </li>
        </ul>
      </div>
    </div>

    <router-view name="footer"></router-view>
  </div>
</template>
<script>
import { cookie } from "vux";

export default {
  name: "Record_infor",
  data() {
    return {
      data: {}
    };
  },
  mounted() {
    // let userInfo = cookie.get("userinfo");
    // userInfo = userInfo ? JSON.parse(userInfo) : {};
    // console.info("userinfo--", userInfo);
    this.$http({
      url: "/wxtoken/recordInfo"
      // headers: {
      //   "x-token": userInfo.token
      // }
    }).then(resp => {
      if (resp.code === 200) {
        this.data = resp.data;
      } else {
        this.$vux.toast.text("请求备案信息失败");
      }
    });
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
@import "../assets/css/news.css";
</style>

